home *** CD-ROM | disk | FTP | other *** search
-
-
-
- KKKKIIIILLLLLLLLPPPPGGGG((((3333BBBB)))) KKKKIIIILLLLLLLLPPPPGGGG((((3333BBBB))))
-
-
-
- NNNNAAAAMMMMEEEE
- killpg - send signal to a process group (4.3BSD)
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssiiiiggggnnnnaaaallll....hhhh>>>>
-
- iiiinnnntttt kkkkiiiillllllllppppgggg((((ppppiiiidddd____tttt ppppggggrrrrpppp,,,, iiiinnnntttt ssssiiiigggg))));;;;
-
- To use any of the BSD signal routines (_k_i_l_l(3B), _k_i_l_l_p_g(3B),
- _s_i_g_b_l_o_c_k(3B), _s_i_g_n_a_l(3B), _s_i_g_p_a_u_s_e(3B), _s_i_g_s_e_t_m_a_s_k(3B), _s_i_g_s_t_a_c_k(2B),
- _s_i_g_v_e_c(3B)) you must either
-
- 1) #define ____BBBBSSSSDDDD____SSSSIIIIGGGGNNNNAAAALLLLSSSS or ____BBBBSSSSDDDD____CCCCOOOOMMMMPPPPAAAATTTT before including <_s_i_g_n_a_l._h>, or
-
- 2) specify one of them in the compile command or makefile:
-
- cc -D_BSD_SIGNALS -o prog prog.c
-
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _k_i_l_l_p_g sends the signal _s_i_g to the process group _p_g_r_p. See _s_i_g_v_e_c(3B)
- for a list of signals.
-
- The sending process and members of the process group must have the same
- effective user ID, or the sender must be the super-user. As a single
- special case the continue signal SSSSIIIIGGGGCCCCOOOONNNNTTTT may be sent to any process that
- is a descendant of the current process.
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
- Upon successful completion, a value of 0 is returned. Otherwise, a value
- of -1 is returned and the global variable _e_r_r_n_o is set to indicate the
- error.
-
- EEEERRRRRRRROOOORRRRSSSS
- _k_i_l_l_p_g will fail and no signal will be sent if any of the following
- occur:
-
- [EINVAL] _S_i_g is not a valid signal number.
-
- [ESRCH] No process can be found in the process group specified by
- _p_g_r_p.
-
- [ESRCH] The process group was given as 0 but the sending process
- does not have a process group.
-
- [EPERM] The sending process is not the super-user and one or more
- of the target processes has an effective user ID different
- from that of the sending process.
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- KKKKIIIILLLLLLLLPPPPGGGG((((3333BBBB)))) KKKKIIIILLLLLLLLPPPPGGGG((((3333BBBB))))
-
-
-
- SEE ALSO
- kill(3B), getpgrp(2), sigvec(3B)
-
- WWWWAAAARRRRNNNNIIIINNNNGGGG ((((IIIIRRRRIIIIXXXX))))
- The 4.3BSD and System V signal facilities have different semantics.
- Using both facilities in the same program is ssssttttrrrroooonnnnggggllllyyyy ddddiiiissssccccoooouuuurrrraaaaggggeeeedddd and
- will result in unpredictable behavior.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-